using UnityEngine;
using System.Collections;

public class ButtonConfirm : MonoBehaviour {
	public GameObject closeTargetWindow;
	
	void OnClick(){
		if(UIManagement.Instance().confirm != null){
			UIManagement.Instance().confirm();
			UIManagement.Instance().confirm = null;
		}
		
		if(closeTargetWindow != null)
			UIManagement.Instance().CloseWindow(closeTargetWindow);
	}
}
